<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ&#xe615;</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so" >
        
	      <input class="layui-input" placeholder="开始日" value="{:I('start')}" name="start" id="start">
	      <input class="layui-input" placeholder="截止日"  value="{:I('end')}" name="end" id="end">
	      <input type="text" name="uid"  value="{:I('uid')}" placeholder="请输入团长uid" autocomplete="off" class="layui-input">
	      <!-- <input type="text" name="mobile"  value="{:I('mobile')}" placeholder="请输入团长手机号" autocomplete="off" class="layui-input"> -->
          <input type="text" name="out_trade_no"  value="{:I('out_trade_no')}" placeholder="请输入订单号" autocomplete="off" class="layui-input">

          <button class="layui-btn" id="search"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>

        </form>
      </div>
      <xblock>
        <button class="layui-btn layui-bg-red" onclick="delAll('','{:U('del')}')"><i class="layui-icon"></i>永久删除</button>
        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
		    <th>
		        <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
		    </th>
		    <th>Id</th>
            <th>团长ID</th>
            <th>团长信息</th>
            <th>订单号</th>
            <th>佣金金额</th>
            <th>时间</th>
            <th>身份类型</th>
          </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
          <tr>
            <td>
          		<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$vo['id']}'><i class="layui-icon">&#xe605;</i></div>
			</td>
			<td>{$vo["id"]}</td>
            <td>{$vo["uid"]}</td>
            <td><img src="{$vo['acv']}" width=40 height=40>{$vo['name']}|{$vo["mobile"]}</td>
            <td>{$vo['out_trade_no']}</td>
            <td>{$vo['money']}</td>
            <td>{$vo['addtime']|date='Y-m-d H:i:s',###}</td>
            <td>
            	<if condition="$vo.type eq 1">团长<else/>总团长</if>
            </td>       
          </tr>
        </volist>


        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>

    </div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });

    </script>

<include file="Public/footer"/>

